#include "Client.h"
#include "GateHandler.h"
Client::Client()
{
	stub_ = new SCProtocol::Stub(GateWayHandler::instance());
}
void 
Client::ping(::google::protobuf::RpcController* controller,
				   ::None const *request,
				   ::None* response,
				   ::google::protobuf::Closure* done)
{
	ACE_DEBUG((LM_INFO,ACE_TEXT("ClientServie::ping None=%d \n"),request->value()));
	None none ;
	none.set_value(request->value());
	this->stub()->pong(NULL,&none,NULL,NULL);
}
void 
Client::login(::google::protobuf::RpcController* controller,
				   ::Account const *request,
				   ::None* response,
				   ::google::protobuf::Closure* done)
{
	ACE_DEBUG((LM_INFO,ACE_TEXT("ClientServie::login account=%s \n"),request->name().c_str()));
}
